package com.medical.interrogation.service.impl;

import com.medical.interrogation.domain.EvaluateForm;
import com.medical.interrogation.mapper.EvaluateFormMapper;
import com.medical.interrogation.service.EvaluateFormService;
import com.medical.interrogation.service.ReceivePatientsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
public class EvaluateFormServiceImpl implements EvaluateFormService {

    @Autowired
    private EvaluateFormMapper evaluateFormMapper;

    @Autowired
    private ReceivePatientsService receivePatientsService;

    /**
     * 用户给医生评价
     * @param evaluateForm
     * @return
     */
    @Transactional
    @Override
    public Integer evaluateInsert(EvaluateForm evaluateForm) {
        Integer evaluated = evaluateFormMapper.evaluateInsert(evaluateForm);
        return evaluated;
    }
}
